﻿/********************************************************************************
** @ Date:2024/12/18
** @ Author: Gaojia
** @ Description: 视频加载类用rtsp
** @ Version:1.0.0
** @ Fun:
********************************************************************************/
#ifndef CCamerSdkOperEx_H
#define CCamerSdkOperEx_H
#include "CCamerSdkOper.h"
#include "CVlcSdkOper.h"
#include "CVlcOper.h"
class CCamerSdkOperEx :
	public CCamerSdkOper
{
	Q_OBJECT

public:
	CCamerSdkOperEx(CDevDataCam *pDevDataCam);
	~CCamerSdkOperEx();
	 bool stopRealPlay(HWND hHand, QString &sReInfo);                         //停止预览 有句柄 
	 bool realPlay(int nDevId, HWND hHand, QWidget *pWidget, QString &sReInfo); //启动预览 
	 void setRollerNum(int nNum, int nBologn, QString sRollerDesc);         //设置托辊号
	 void setCorrectData(double dLeftRectifyValue, double dRightRectifyValue, int nRectifySetValue, int nRectifySetValueTwo, QPointF BeltEdgePf1, QPointF BeltEdgePf2, QPointF BeltEdgePf3, QPointF BeltEdgePf4,
		 int nIsHaveBeltState, bool bBeltState, int nDrawType);

private:
	bool realPlayMainThread(int nDevId, HWND hHand, QWidget* pWidget, QString& sReInfo);   //主线程工作
private:
	QMap<HWND, CVlcOper*>m_cMapVlc;   //Rtsp视频对象
	QMap<HWND, bool>m_cMapVlcState;   //Rtsp视频对象状态
};
#endif